package com.kang.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.kang.dao.AuditFlowMapper;
import com.kang.pojo.AuditFlow;
import com.kang.service.AuditFlowService;

/**
 * 工作流程（服务接口实现类）
 * @author wd
 *
 */
@Service
public class AuditFlowServiceImpl implements AuditFlowService {

	/**
	 * 工作流程DAO
	 */
	@Resource
	private AuditFlowMapper auditFlowMapper;

	/**
	 * 查询所有的审批工作流程
	 */
	@Override
	public List<AuditFlow> listAllFlow(AuditFlow auditFlow) {
		return auditFlowMapper.listAllFlow(auditFlow);
	}

	/**
	 * 通过审批流程id查询流程信息
	 */
	@Override
	public AuditFlow getAuditFlowById(int auditFlowID) {
		return auditFlowMapper.getAuditFlowById(auditFlowID);
	}

	/**
	 * 根据审核流程id修改审核流程信息
	 */
	@Override
	public int updateAuditFlowById(AuditFlow auditFlow) {
		return auditFlowMapper.updateAuditFlowById(auditFlow);
	}
	
	
}
